<style>
.fui-header a.back:before {
	content: " ";
	border-color: #fff;
}
</style>
<div class="fui-page order-create-page fui-page-current">
	<div class="fui-header" style="z-index:108;background-color:#18bc9c;position: fixed;">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()">返回上一页</a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff"></div>
				<div class="fui-header-right" style="padding-right:0.5rem;color:#fff" href="javascript:;" ng-click="access_json('jy_kaoshi/order/')">
						<div class="icon icon-wo1"></div>
				</div>
		</div>
	<div class="fui-content" style="margin-top:2.5rem">
		<div class="weui_cells_title c bold">{{pagedata.group.title}}</div>
		<div class="weui_cells_title c" style="margin-top:0">{{pagedata.group.desc || '暂时没有该分类的描述'}}</div>
		<div class="fui-cellone" style="padding-top:0">
			<div class="fui-cellone-info">
				<div class="search-input" style="height:1.6rem">
					<form action="javascript:return true">
					<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="pagedata.searchget()" style="line-height: 1.7rem;"></i>
					<input type="search" placeholder="输入关键字" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;text-align: left; border: 1px solid #fff;color: #999; font-size:0.6rem;background:#fff;border-radius: 1rem;" />
					</form>
				</div>
			</div>
			<div class="fui-cellone-remark noremark">
			 	<span style="margin-left:0.3rem;font-size: 0.75rem;color:#333" ng-click="pagedata.searchget()">搜索</span>
			 </div>
		</div>
		<div style="padding:0 0.6rem">
			<div class="fui-tab fui-tab-danger" style="margin-top:0">
					<a ng-class="{'active':pagedata.params.type == 0}" ng-click="pagedata.action='jy_kaoshi/group';pagedata.params.type = 0;tool.get_list('jy_kaoshi/index/grouplist/',true)">下级分类</a>
					<a ng-class="{'active':pagedata.params.type == 1}" ng-click="pagedata.action='jy_kaoshi/ti_index';pagedata.params.type = 1;tool.get_list('jy_kaoshi/index/tikulist/',true)">内含题库</a>
			 
			</div>
			<div ng-if="pagedata.params.type == 0" class="fui-list-group merchgroup radius" style="margin-top:0" ng-repeat="item in pagedata.list">
				<div class="fui-list">
					<a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json(pagedata.action+'//id='+item.id)">
						<img class="round" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
					</a>
					<a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json(pagedata.action+'//id='+item.id)">
						<div class="title bold" style="font-size:0.76rem">{{item.title}}</div>
						<div class="store-star" style="font-size:0.75rem">
							<span>{{item.desc}}</span>
						</div>
						<div class="subtitle" style="font-size:0.75rem">
							<div class="store-moneylimit">
							  <span>答卷数 {{item.listnum}}</span>
							</div>
						</div>
					</a>
				</div>
			</div>
			<div ng-if="pagedata.params.type == 1" class="fui-list-group merchgroup" style="margin-top:0" ng-repeat="item in pagedata.list">
				<div class="fui-list">
					<a class="fui-list-media storelogo" href="javascript:;" ng-click="access_json('jy_kaoshi/ti_index//id='+item.id)">
						<img class="round" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
					</a>
					<a class="fui-list-inner" style="margin-top:0.16rem" href="javascript:;" ng-click="access_json('jy_kaoshi/ti_index//id='+item.id)">
						<div class="title bold" style="font-size:0.76rem">{{item.title}}</div>
						<div class="subtitle" style="font-size:0.75rem">
							<span>{{item.desc || '无描述'}}</span>
						</div>
						<div class="subtitle" style="font-size:0.75rem">
							<span>所属分类:{{item.group}}</span>
						</div>
					</a>
				</div>
			</div>
			<div class="content-empty" ng-show="pagedata.list.length == 0">
				  <i class="icon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;font-size:2rem"></i><br/>
				  <p style="color: #999;font-size: .75rem">该分类下暂时没有{{pagedata.params.type == 1?'题库':'下级分类'}}！</p>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script type="text/javascript">
if(scope.pagedata.params.type==1){
scope.tool.get_list('jy_kaoshi/index/tikulist/',true);
}else{
scope.tool.get_list('jy_kaoshi/index/grouplist/',true);
}
scope.pagedata.scroll_bottom=function(){
	if(scope.pagedata.params.type==1){
		scope.tool.get_list('jy_kaoshi/index/tikulist/');
	}else{
		scope.tool.get_list('jy_kaoshi/index/grouplist/');
	}
}
scope.pagedata.searchget=function(){
	if(scope.pagedata.params.type==1){
		scope.tool.get_list('jy_kaoshi/index/tikulist/',true);
	}else{
		scope.tool.get_list('jy_kaoshi/index/grouplist/',true);
	}
}
</script>
